<ui:composition template="/WEB-INF/template/template.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:cc="http://java.sun.com/jsf/composite">
    <cc:interface>
        <cc:attribute name="accueil" 
                      required="false"
                      default=""/>
        <cc:attribute name="comptes" 
                      required="false"
                      default=""/>
        <cc:attribute name="user" 
                      required="false"
                      default=""/>
        <cc:attribute name="stat" 
                      required="false"
                      default=""/>
    </cc:interface>
    <cc:implementation>
        <ul id="navigator">
            <li>
                <h:outputLink value="#{request.contextPath}/"
                              styleClass="#{cc.attrs.accueil}">
                    <h:outputText value="Accueil" />
                </h:outputLink>
            </li>
            <li>
                <h:outputLink value="#{request.contextPath}/Compte/compte.jsf"
                              styleClass="#{cc.attrs.comptes}"
                              rendered="#{loginBean.authenticated}">
                    <h:outputText value="Comptes" />
                </h:outputLink>
            </li>
            <li>
                <h:outputLink value="#{request.contextPath}/Utilisateur/utilisateur.jsf"
                              styleClass="#{cc.attrs.user}"
                              rendered="#{loginBean.gestionnaire}">
                    <h:outputText value="Utilisateurs" />
                </h:outputLink>
            </li>
            <li>
                <h:outputLink value="#{request.contextPath}/Statistique/statistique.jsf"
                              styleClass="#{cc.attrs.stat}"
                              rendered="#{loginBean.gestionnaire}">
                    <h:outputText value="Statistiques" />
                </h:outputLink>
            </li>
        </ul>
    </cc:implementation>
</ui:composition>